<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<jsp:directive.page import="com.anhry.app.safety.util.Util"/>
<%@ include file="/WEB-INF/pages/share/taglib.jsp"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>菜单编辑</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link href="<%=basePath+Util.SKIN%>/css/right.css" type="text/css" rel="stylesheet">
	<script type="text/javascript" src="<%=basePath%>/js/jquery-1.7.2.js"></script>
	<script type="text/javascript" src="<%=basePath%>/js/check_jquery.js"></script>
  </head>
  
  <body>
	<div  class="body-box">
		<div class="map">
			<div class="map_con">
				您当前的位置：系统管理 &gt; 系统设置 &gt; 部门编辑
			</div>

		</div>
		<div id="container">
			<form action="<%=basePath%>/admin/dept_save.action" method="post" name="form1">
		    	<table border="0" cellspacing="0" cellpadding="0"  width="100%" class="info_table">
					<tr>
						<td colspan="4" class="title_li">编辑部门</td>
					</tr>
					<s:if test="%{dept.id!=null}">
						<tr>
							<td width="15%" class="title_td">部门ID：</td>
							<td>&nbsp;${dept.id}</td>
						</tr>
					</s:if>
					<tr>
						<td width="15%" class="title_td">父部门名称：</td>
						<td>&nbsp;${dept.deptParentName}</td>
					</tr>
					<tr>
						<td class="title_td">部门名称：</td>
						<td><input type="text" name="deptName" size="50" value="${dept.deptName}" id="bit1"/><SPAN class="note4">*</SPAN></td>
					</tr>
					<tr>
						<td class="title_td">部门编码：</td>
						<td><input type="text" name="deptCode" size="50" value="${dept.deptCode}"/><span style="color: gray">(属地指的的国标编码，科室和行业可不写)</span></td>
					</tr>
					<s:if test="%{cType==1}">
						<tr>
							<td class="title_td">部门类型：</td>
							<td><s:radio list="#{1:'安监局',2:'综合监管',3:'行业监管'}" name="deptClass" theme="simple" value="%{dept.deptClass==null?'2':dept.deptClass}"></s:radio> </td>
						</tr>
					</s:if>
					<s:if test="%{cType==3}">
						<tr>
							<td class="title_td">部门类型：</td>
							<td><s:radio list="#{1:'县(市、区)、开发区行业（街道）',2:'安全科',3:'非安全科（村）'}" name="deptClass" theme="simple" value="%{dept.deptClass==null?'2':dept.deptClass}"></s:radio> </td>
						</tr>
					</s:if>
					<s:if test="%{cType==2}">
						<tr>
							<td class="title_td">部门类型：</td>
							<td><s:radio list="#{1:'行业监管',2:'专业监管'}" name="deptClass" theme="simple" value="%{dept.deptClass==null?'1':dept.deptClass}"></s:radio> </td>
						</tr>
						<s:if test="%{pid!=1}">
							<tr>
								<td class="title_td">上级部门：</td>
								<td><s:select list="hyList" listKey="id" listValue="deptName" headerKey="" headerValue="请选择" name="deptSj" id="select1" theme="simple" value="%{dept.deptSj}" cssStyle="width:155px;"></s:select></td>
							</tr>
						</s:if>
					</s:if>
					<tr>
						<td colspan="4" align="center">
							<center>
							<input type="submit" name="btntj" class="link_input" id="btnSubmit" value="提 交">
							<input type="reset" name="btnset" class="link_input" id="btnset" value="重 置">
							<input type="button" name="btn1" class="link_input" id="btnset1" value="返 回" onclick="window.location.href='<%=basePath%>/admin/dept_list.action?cType=${cType }'">
							</center>
						</td>
					</tr>
				</table>
				<input type="hidden" name="deptId" value="${dept.id}"/>
				<input type="hidden" name="cType" value="${cType}"/>
				<input type="hidden" name="deptGrade" value="${deptGrade}"/>
				<input type="hidden" name="deptParentId" value="${dept.deptParentId}"/>
				<input type="hidden" name="deptParentName" value="${dept.deptParentName}"/>
			</form>
		</div>
	</div>
  </body>
</html>
